<template>
    <div class="wrapper">
        <div>用户名: {{ user.username }}</div>
        <div>个人介绍: {{ user.intro }}</div>
        <slot :accountJoin="user.accountJoin"></slot>
    </div>
</template>

<script>
export default {
    name: "Child",
    props: ['user']
}
</script>

<style lang="less" scoped>
.wrapper {
    width: 100%;
    border: 1px solid #333;
    border-radius: 10px;
    margin: 10px 0;
    padding: 10px;
}
</style>